// mixin.js
export const showAreaStreetSheetMixin = {
  initData: {
    showAreaStreetSheet: false
  },
  methods: {
    showAreaStreetSheetOpen() {
      this.showAreaStreetSheet = true
    },
    showAreaStreetSheetClose() {
      this.showAreaStreetSheet = false
    },
    showAreaStreetSheetConfirm(postFieldData) {
      console.log('选择了地区和街道信息', postFieldData)
      Object.assign(this.postDto, {
        province: postFieldData.province,
        city: postFieldData.city,
        cityCode: postFieldData.cityCode,
        area: postFieldData.area,
        areaCode: postFieldData.areaCode,
        street: postFieldData.street
      })
      this.showAreaStreetSheet = false
    }
  }
}

